<template>

</template>

<script setup>

</script>

<style scoped>
.common-layout {
  height: 100vh;
}

.chat-window {
  height: calc(100vh - 160px);
  overflow-y: auto;
  padding: 10px;
}

.sidebar {
  overflow-y: auto; /* 保证侧边栏可以滚动 */
  height: calc(100vh - 64px); /* 减去header的高度 */
}

.message {
  max-width: 60%;
  margin-bottom: 10px;
  padding: 10px;
  border-radius: 10px;
  word-wrap: break-word;
  position: relative;
  //transition: transform 0.3s ease;
  //display: flex;
}


.sent-message {
  background-color: #6f9874;
  color: white;
  align-self: flex-end;
  margin-left: auto;
}

.received-message {
  background-color: #f0f0f0;
  color: black;
  align-self: flex-start;
  margin-right: auto;
}

.chat-image {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
}

.input-area {
  display: flex;
  align-items: center;
  position: relative;
  height: fit-content;
}

.input-area input {
  flex: 1;
  margin-right: 5px;
}

.emoji-picker {
  position: absolute;
  right: 0;
  bottom: 60px;
  z-index: 1000;
  width: 300px;
}

.menu-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.unread-badge {
  margin-left: auto;
  margin-bottom: auto;
}
.active-contact {
  background-color: #e0f7fa !important;
}
.message-time {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  color: #ccc;
}
.menu-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: transform 0.3s ease; /* 添加平滑过渡效果 */
}

.menu-item:hover {
  transform: scale(1.1); /* 鼠标移入时放大 */
}


.message-body {
  margin-top: 7px; /* 添加间隔 */
}
</style>